<?php
  // //$req 用于获取url的?后的所有参数 
  // $req=$_SERVER["QUERY_STRING"];

  if($req=="") header( "Location: /studentSkill/views/login.php?page=login" ); 

  

  // //explode函数 用 = 分割 $req 的2边 用于获取到另外一边（ 比如 page=index 获取到的是index 然后把index 赋值给explode） 
  // $pageName=explode("=",$req)[1];
  
  // switch($pageName){
  //   case "adIndex":
  //     header( "Location: /studentSkill/views/adIndex.php?page=adIndex" );
  //     break;
  //   case "adLogin":
  //     header( "Location: /studentSkill/views/adLogin.php?page=adLogin" );      
  //     break;
  //   case "adInput":
  //     header( "Location: /studentSkill/views/adInput.php?page=adInput" );      
  //     break;
  //   case "adStu":
  //     header( "Location: /studentSkill/views/adStu.php?page=adStu" );      
  //     break;
  //   case "index":
  //     header( "Location: /studentSkill/views/index.php?page=index" );
  //     break;
  //   default:
  //     echo "error";
  //     break;
  // }

?>